package com.mstore.dao;

import java.util.List;

public class AlipayAccountDao extends SuperDao {

	/**
	 * 通过企业id查询填报账号
	 */
	public Object getAlipayAccountByEaId(Long eaId) {
		String sql = "from AlipayAccount where eaId = ?";
		List<Object> list = getObject(sql, new Object[]{ eaId });
		if (list.isEmpty()) {
			return null;
		}
		
		return list.get(0);
	}
	
}
